﻿<%@ Import Namespace="AFI.Speargun.Web.Models" %>
<%@ Import Namespace="AFI.Speargun.Web.Core" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AFI.Speargun.Web.Models.AssetEntry>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    资产 - 查看 -
    <%= Html.Encode(Model.Appellation) %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        查看 -
        <%= Html.Encode(Model.Appellation) %></h2>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="data-table">
        <caption>
            基本信息</caption>
        <tr>
            <th scope="row" style="width:150px">
                名称:
            </th>
            <td>
                <%= Html.Encode(Model.Appellation) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                类别:
            </th>
            <td>
                <%= Html.ActionLink(Model.Category.Appellation, "Index", "Category", new { id = Model.Category.CategoryId }, null) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                部门:
            </th>
            <td>
                <%= Html.ActionLink(Model.Department.Appellation, "Index", "Department", new { id = Model.Department.DepartmentId }, null) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                规格型号:
            </th>
            <td>
                <%= Html.Encode(Model.Specification) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                取得方式:
            </th>
            <td>
                <%= Html.Encode(Model.AcquisitionMode.Appellation) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                取得日期:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:d}", Model.AcquisitionDate)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                采购人:
            </th>
            <td>
                <%= Html.Encode(Model.PurchasingAgent) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                资产原值:
            </th>
            <td>
                <%= Html.Encode(Model.Currency.Format(Model.OriginalValue))%>
            </td>
        </tr>
        <tr>
            <th scope="row">
                备注:
            </th>
            <td>
                <%= Html.Encode(Model.Remark) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                录入人:
            </th>
            <td>
                <%= Html.Encode(Membership.GetUser(Model.EntryCreateBy, false)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                录入日期:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:d}", Model.EntryCreateDate)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                财务编号:
            </th>
            <td>
                <%= Html.Encode(Model.DepreciationFinanceId) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                折旧模式:
            </th>
            <td>
                <%= Html.Encode(((DepreciationMode)Model.DepreciationMode).GetTextValue())%>
            </td>
        </tr>
        <tr>
            <th scope="row">
                折旧年限(单位：月):
            </th>
            <td>
                <%= Html.Encode(Model.DepreciationLife) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                净残值率:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:P}", Model.DepreciationSalvageValueRate)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                入账日期:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:d}", Model.DepreciationInsertDate)) %>
            </td>
        </tr>
        <tr>
            <th scope="row">
                折旧起始日期:
            </th>
            <td>
                <%= Html.Encode(String.Format("{0:d}", Model.DepreciationStartDate)) %>
            </td>
        </tr>
    </table>
    <p>
        <%=Html.ActionLink("[编辑]", "Edit", new { id=Model.AssetEntryId }) %>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">
    <% Html.RenderPartial("AssetEntryMenu", Model.AssetEntryId.ToString()); %>
</asp:Content>
